package net._7colorlotus;

import net._7colorlotus.model.Car;
import net._7colorlotus.model.CarDto;
import net._7colorlotus.util.CarMapper;

public class MapstructClient {
    public static void main(String[] args) {
        //given
        Car car = new Car( "Morris", 5 );

        //when
        CarDto carDto = CarMapper.INSTANCE.car2CarDto( car );

        System.out.println(carDto.getSeatCount());
        System.out.println(carDto.getMake());
    }
}
